<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="root">
			<input type="text" @keyup="daxie" />
			<h1 v-show="status%2==1">当前已切换为大写模式！</h1>
		</div>
		<script type="text/javascript">
			new Vue({
				el:"#root",
				data:{
					data:"",
					status:0
				},
				methods:{
					daxie(e){
						if(e.keyCode==20){
							this.status+=1;
						}
					}
				}
			})
		</script>
	</body>
</html>
